﻿@{
    ViewBag.Title = "Detail";
    Layout = null;
}

<!DOCTYPE html>
<html>
<head>
    <title>Flexpaper例子</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="@Href("~/Content/bootstrap-3.1.1-dist/css/bootstrap.min.css")" rel="stylesheet" />
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-1.11.0.min.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Content/flexpaper-2.2.1/js/flexpaper.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Content/flexpaper-2.2.1/js/flexpaper_handlers.js")"></script>

</head>
<body>
    <a href="javascript:void(0)" onclick="window.history.go(-1)" style="margin-left: 10px; margin-top: 5px; font-size: 12px;">返回</a>

    <div style="position: absolute; left: 10px; top: 30px; border: 1px solid gray" id="documentViewer">
    </div>
    <script type="text/javascript">
        $(function () {

            $('#documentViewer').width($(window).width() - 30).height($(window).height() - 50);

            var swf_config = {
                jsdir: '@Url.Content("~/Content/flexpaper-2.2.1/js/")',
                    file: '@ViewBag.DISPLAY_SWF'
                };

                $('#documentViewer').FlexPaperViewer(
                    {
                        config: {
                            SWFFile: swf_config.file,
                            Scale: 1.5,
                            ZoomTransition: 'easeOut',
                            ZoomTime: 0.5,
                            ZoomInterval: 0.2,
                            FitPageOnLoad: true,
                            FitWidthOnLoad: false,
                            FullScreenAsMaxWindow: false,
                            ProgressiveLoading: false,
                            MinZoomSize: 0.2,
                            MaxZoomSize: 5,
                            SearchMatchAll: false,
                            InitViewMode: 'Portrait',
                            RenderingOrder: 'flash',
                            StartAtPage: '',
                            ViewModeToolsVisible: true,
                            ZoomToolsVisible: true,
                            NavToolsVisible: true,
                            CursorToolsVisible: true,
                            SearchToolsVisible: true,
                            WMode: 'window',
                            localeChain: 'zh_CN',
                            jsDirectory: swf_config.jsdir
                        }
                    }
                );
            });
    </script>
</body>
</html>
